﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Task:NPC
    {
        private string taskinfo;//任务名称
        public string Taskinfo { get; set; }
        public Task(string name, int health, string region, string taskinfo) : base(name, health, region)
        {
            this.taskinfo = taskinfo; 
        }
        public override void speak()
        {
            Console.WriteLine("所处地:{0}\n名字为:{1}\n生命值为:{2}\n任务为:{3}\n", this.Region,base.Name,this.Health, this.taskinfo);   
        }
    }
}
